package com.blog.dao;

import com.blog.domain.Type;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Type entities.
 * 
 */
public interface TypeDAO extends JpaDao<Type> {

	/**
	 * JPQL Query - findTypeByPrimaryKey
	 *
	 */
	public Type findTypeByPrimaryKey(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findTypeByPrimaryKey
	 *
	 */
	public Type findTypeByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllTypes
	 *
	 */
	public Set<Type> findAllTypes() throws DataAccessException;

	/**
	 * JPQL Query - findAllTypes
	 *
	 */
	public Set<Type> findAllTypes(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findTypeByNameContaining
	 *
	 */
	public Set<Type> findTypeByNameContaining(String name) throws DataAccessException;

	/**
	 * JPQL Query - findTypeByNameContaining
	 *
	 */
	public Set<Type> findTypeByNameContaining(String name, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findTypeByName
	 *
	 */
	public Set<Type> findTypeByName(String name_1) throws DataAccessException;

	/**
	 * JPQL Query - findTypeByName
	 *
	 */
	public Set<Type> findTypeByName(String name_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findTypeById
	 *
	 */
	public Type findTypeById(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findTypeById
	 *
	 */
	public Type findTypeById(Integer id_1, int startResult, int maxRows) throws DataAccessException;

}